home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / help / CONTINUE < prev    next >
Text File  |  1994-04-25  |  462b  |  24 lines

  1. CONTINUE:
  2.  
  3.     The continue statement in RLaB is similar to the C language
  4.     continue statement. When a continue statement is encountered,
  5.     it causes the next iteration of the enclosing for or while
  6.     loop to begin.
  7.  
  8.     For example, the following set of statements causes the
  9.     variable `i' to be printed when it's value is 2.
  10.  
  11.     > for (i in 1:3)
  12.       {
  13.         if (i == 2)
  14.         {
  15.           i ?
  16.         else
  17.           continue
  18.         }
  19.       }
  20.      i =
  21.             2
  22.  
  23. See Also: BREAK, FOR, WHILE
  24.